/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thesis.haipv.qa.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author PHANHAI
 */
public class Util {
    public static String timeFormat(long time) {
        Date d = new Date(time);
        String timeString = new SimpleDateFormat("dd/MM/YYYY HH:mm:ss").format(d.getTime());
        return timeString;
    }
    
    public static String formatNumber(float number) {
        System.out.println("FORMAT: "+String.format("%0.3f %n", number));
        return String.format("%0.3f %n", number);
    }
    
}
